<!DOCTYPE html>
<html>

<head>
  <title>校园内推网</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
  <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
  <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
  <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
</head>

<body>
  <!-- 导航栏  -->
  <nav class="navbar navbar-expand-sm bg-dark navbar-dark">
    <!-- Brand/logo -->
    <a class="navbar-brand" href="{:url('index/index')}">首页</a>
    <!-- Links -->
    <ul class="navbar-nav">
      <li class="nav-item">
        <a class="nav-link" href="{:url('company/index')}">公司</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="{:url('gw/index')}">岗位</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="{:url('xj/index')}">宣讲</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="{:url('company/index/index')}">公司端</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="{:url('school/index/index')}">学校端</a>
      </li>
      {if !session('user_id')}
      <li class="nav-item">
        <a class="nav-link" href="{:url('login/index')}">登录</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="{:url('reg/index')}">注册</a>
      </li>
      {/if}
      {if session('user_id')}
    <li class="nav-item">
        <a class="nav-link" href="{:url('me/index')}">个人中心</a>
      </li>
      <li class="nav-item" >
        <a class="nav-link" href="{:url('login/logout')}">[注销]</a>
      </li>

      {/if}
      
    </ul>
  </nav>
  <!-- 导航栏  end -->
  <!-- 内容 -->
  {block name="main"}

{/block}
 
  <!-- 底部盒子 -->
  <div class="jumbotron text-center" style="margin-bottom:0;margin-top: 40px;">
    <p>底部内容</p>
  </div>
  <!-- 底部盒子 end -->
</body>

</html>